package com.zyong.design.pattern.interpret.case1;

/**
 * 非终结表达式-抽象表达式
 * @program: zyong-design-pattern
 * @ClassName: AbstractNonTerminalExpression
 * @author: zyong
 * @create: 2024-06-01 20:29
 */
public abstract class AbstractNonTerminalExpression implements IExpression {
    protected IExpression leftExpression;
    protected IExpression rightExpression;

    public AbstractNonTerminalExpression(IExpression leftExpression, IExpression rightExpression) {
        this.leftExpression = leftExpression;
        this.rightExpression = rightExpression;
    }
}
